from django.urls import path, re_path

from chat.views import ChatView, ChatMessageView, community_home, post_detail, load_child_comments, add_comment, \
    CreatePost

urlpatterns = [
    path('chat/', ChatView.as_view(), name='chat'),
    path('chat/message/<int:id>', ChatMessageView.as_view(), name='chat_msg'),

    path('community', community_home, name='community_home'),
    path('post_detail/<int:id>', post_detail, name='post_detail'),
    path('load_child_comments/<int:parent_id>/',load_child_comments,name='load_child_comments'),

    path('add_comment/',add_comment,name='add_comment'),
    path('create_post/',CreatePost.as_view(),name='create_post')

]